import { request } from './base'

export function getNativePlaces () {
  return request('get', `/job/getNativeplace`)
}

export function getEmployeeById (id) {
  return request('post', `/member/getEmployeeByIdAuth`,{id})
  // return request('get', `/member/getEmployeeById/${id}`)
}

export function updateMainInfo (data) {
  return request('post', `/member/updateMainInfo`, data)
}

export function addEducationInfo (data) {
  return request('post', `/member/saveEducationInfo`, data)
}

export function updateEducationInfo (data) {
  return request('post', `/member/updateEducationInfo`, data)
}

export function deleteEducationInfo (oid) {
  return request('get', `/member/deleteEducation/${oid}`)
}

export function addSocietyInfo (data) {
  return request('post', `/member/saveSociety`, data)
}

export function updateSocietyInfo (data) {
  return request('post', `/member/updateSociety`, data)
}

export function deleteSocietyInfo (oid) {
  return request('get', `/member/deleteSociety/${oid}`)
}

export function addFamilyInfo (data) {
  return request('post', `/member/saveFamily`, data)
}

export function updateFamilyInfo (data) {
  return request('post', `/member/updateFamily`, data)
}

export function deleteFamilyInfo (oid) {
  return request('get', `/member/deleteFamily/${oid}`)
}

export function addInorgInfo (data) {
  return request('post', `/member/saveInorgInfo`, data)
}

export function updateInorgInfo (data) {
  return request('post', `/member/updateInorgInfo`, data)
}

export function deleteInOrgInfo (oid) {
  return request('get', `/member/deleteInorg/${oid}`)
}

export function findDictionary () {
  return request('get', `/neusoft/findDictionary?typeCode=CODE_Degree`)
}
